<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>css精灵</title>
    <style>
        div{
            width: 147px;
            height: 143px;
            background-color: pink;
            background-image: url(../img/css精灵图.png);
            background-position: -315px -336px;
        }
    </style>
</head>
<body>
    <div></div>
</body>
</html>